package com.esiag.pdsteam.measureagainst;

import java.util.ArrayList;
import java.util.List;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import com.esiag.pdsteam.dao.ActionDao;
import com.esiag.pdsteam.entities.Action;
import com.esiag.pdsteam.entities.Information;
import com.esiag.pdsteam.entities.TypeComlexInfo;
import com.esiag.pdsteam.treatcomplexinfo.MainFindComplexInfo;

public class MainMeasureAgainst {

	public void start()
	{
		ManageMeasureAgainst manageMeasureAgainst = new ManageMeasureAgainst();
		List<Information> informations = new ArrayList<Information>();
		TypeComlexInfo typeComlexInfo1 = new TypeComlexInfo();
		typeComlexInfo1.setId(1);
		typeComlexInfo1.setTyp("Critique");
		Information information1 = new Information(3,"Oxygene",typeComlexInfo1,null);
		Information information2 = new Information(2,"Temperature",typeComlexInfo1,null);
		informations.add(information2);
		informations.add(information1);
		
		Information information6 = new Information(6,"Dilatation Rail",typeComlexInfo1,null);
		Information information7 = new Information(7,"Vitesse",typeComlexInfo1,null);
		informations.add(information6);
		informations.add(information7);
		
		TypeComlexInfo typeComlexInfo2 = new TypeComlexInfo();
		typeComlexInfo2.setId(2);
		typeComlexInfo2.setTyp("NonCritique");
		Information information4 = new Information(4,"Heure",typeComlexInfo2,null);
		informations.add(information4);
		
		
		manageMeasureAgainst.treatInformationMeasureAgainst(information7);
		manageMeasureAgainst.treatInformationMeasureAgainst(information6);
		manageMeasureAgainst.treatInformationMeasureAgainst(information4);
	}
	
	public static void main(String[] args) {
		MainMeasureAgainst main = new MainMeasureAgainst();
		main.start();
		
	}
}
